home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Reference Guide
/
C-C++ Interactive Reference Guide.iso
/
c_ref
/
csource5
/
328_01
/
wbuttont.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-03-17
|
381b
|
23 lines
/* wbuttont.c
* CONTAINS wbutton_test ()
*
* tests a keystroke (which may be a mouse)
* returns same if keystrke is an active button
* returns 0 if not a button.
*
*
*/
#include "wsys.h"
int wbutton_test ( int uval )
{
WBUTTON *Bptr;
Bptr = wbutton_getptr ( uval );
uval = Bptr ? Bptr-> Bval : 0;
return (uval); /* wbutton_test */
}